package com.ruoyi.tb.lmt.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.tb.lmt.domain.bo.KeepAliveBo;
import com.ruoyi.tb.lmt.service.ILifeService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 检修类别
 *
 * @author ruoyi
 * @date 2023-11-30
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/xha-lmt/life")
public class TbLifeController extends BaseController {

    @Autowired
    private ILifeService iLifeService;


    @PostMapping("/alive")
    public Boolean alive(@RequestBody KeepAliveBo keepAliveBo) {

        return iLifeService.keepAlive(keepAliveBo);
    }
}
